package com.colin.git;

public interface GitConstant {

    String REQUEST_URL = "https://git.sohan.cn/api/v4/";

    /**
     * 获取合并请求列表：GET /projects/:id/merge_requests
     */
    String MERGER_REQUEST = "/projects/%s/merge_requests";

    /**
     * 获取单个合并请求：GET /projects/:id/merge_requests/:merge_request_i
     */
    String QUERY_SINGLE_MR = "/projects/%s/merge_requests/%s";

    /**
     * 创建合并请求：POST /projects/:id/merge_requests
     */
    String CREATE_MR = "/projects/%s/merge_requests";

    /**
     * 删除合并请求：DELETE /projects/:id/merge_requests/:merge_request_id
     */
    String DELETE_MR = "/projects/%s/merge_requests/%s";

    /**
     * 更新合并请求：PUT /projects/:id/merge_requests/:merge_request_id
     */
    String UPDATE_MR = "/projects/%s/merge_requests/%s";


    /**
     *TODO
     * 获取合并请求的变更文件：GET /projects/:id/merge_requests/:merge_request_id/changes
     * 获取合并请求的评论列表：GET /projects/:id/merge_requests/:merge_request_id/notes
     * 创建合并请求的评论：POST /projects/:id/merge_requests/:merge_request_id/notes
     * 更新合并请求的评论：PUT /projects/:id/merge_requests/:merge_request_id/notes/:note_id
     * 删除合并请求的评论：DELETE /projects/:id/merge_requests/:merge_request_id/notes/:note_id
     */
}
